<div class="bottom-nav">
    <div event-click="{{'$Event.showpersonal_btn'}}">
        <div class="mainmenu">
            <div class="icon-menu"></div>
        </div>
        <div class="innertitle">{{bus_loginer.info.title}} - {{title}}</div>
    </div>
    <!-- <div class="navbox">
        <a>
            <div data='1' class="navitem {{isbottom&&'focus'}}" event-click="{{#if showdata==1}}{{'$Event.closechild'}}{{#else}}{{'$Event.showchild'}}{{/if}}">订单管理</div>
        </a>
        <div class="childmenu {{showdata==1&&'focus'}}" event-click="{{'$Event.showpersonal_btn'}}">
            <a href="#default/order">
                <div class="item">
                    <div class="icon-file"></div>
                    全部订单
                </div>
            </a>
            <a href="#default/order?type=2">
                <div class="item">
                    <div class="icon-truck"></div>
                    未发货
                </div>
            </a>
            <a href="#default/order?type=3">
                <div class="item">
                    <div class="icon-credit"></div>
                    未付款
                </div>
            </a>
        </div>
        <a href="#default/shelves">
            <div event-click="{{'$Event.showpersonal_btn'}}" class="navitem {{isbottom&&'focus'}}">新品上架</div>
        </a>
        <a>
            <div data='3' class="navitem {{isbottom&&'focus'}}" event-click="{{#if showdata==3}}{{'$Event.closechild'}}{{#else}}{{'$Event.showchild'}}{{/if}}">信息修改</div>
        </a>
        <div class="childmenu {{showdata==3&&'focus'}}" event-click="{{'$Event.showpersonal_btn'}}">
            <a href="#default/info">
                <div class="item">
                    <div class="icon-office"></div>
                    店铺信息
                </div>
            </a>
            <a href="#default/info?type=2">
                <div class="item">
                    <div class="icon-key"></div>
                    修改密码
                </div>
            </a>
        </div>
        <a href="#default/eva">
            <div event-click="{{'$Event.showpersonal_btn'}}" class="navitem {{isbottom&&'focus'}}">评价管理</div>
        </a>
        <a href="#default/theme">
            <div event-click="{{'$Event.showpersonal_btn'}}" class="navitem {{isbottom&&'focus'}}">颜色主题</div>
        </a>
        <a>
            <div data='2' class="navitem {{isbottom&&'focus'}}" event-click="{{#if showdata==2}}{{'$Event.closechild'}}{{#else}}{{'$Event.showchild'}}{{/if}}">返利管理</div>
        </a>
        <div class="childmenu {{showdata==2&&'focus'}}" event-click="{{'$Event.showpersonal_btn'}}">
            <a href="#default/points">
                <div class="item">
                    <div class="icon-coin"></div>
                    推荐返利
                </div>
            </a>
            <a href="#default/shoppinguide">
                <div class="item">
                    <div class="icon-users"></div>
                    导购链接
                </div>
            </a>

        </div>
        <a href="#default/visitor">
            <div event-click="{{'$Event.showpersonal_btn'}}" class="navitem {{isbottom&&'focus'}}">访客信息</div>
        </a>
    </div> -->
    <div class="navbox {{isbottom&&'focus'}}">
        <div data="1" class="navi {{showdata==1&&'focus'}}" event-click="{{#if showdata==1}}{{'$Event.closechild'}}{{#else}}{{'$Event.changenav'}}{{/if}}">
            <div class="navitop">
                <div class="icon-file"></div>
                订单管理
            </div>
            <div class="navibottom" event-click="{{'$Event.showpersonal_btn'}}">
                <a href="#default/order">
                    <div class="navis">
                        <div class="icon-file"></div>
                        全部订单
                    </div>
                </a>
                <a href="#default/order?type=2">
                    <div class="navis">
                        <div class="icon-truck"></div>
                        未发货
                    </div>
                </a>
                <a href="#default/order?type=3">
                    <div class="navis">
                        <div class="icon-credit"></div>
                        未付款
                    </div>
                </a>
            </div>
        </div>
        <a href="#default/shelves">
            <div class="navi" event-click="{{'$Event.showpersonal_btn'}}">
                <div class="navitop">
                    <div class="icon-upload"></div>
                    新品上架
                </div>
            </div>
        </a>

        <div data="2" class="navi {{showdata==2&&'focus'}}" event-click="{{'$Event.changenav'}}">
            <div class="navitop">
                <div class="icon-pencil"></div>
                信息修改
            </div>
            <div class="navibottom" event-click="{{'$Event.showpersonal_btn'}}">
                <a href="#default/info">
                    <div class="navis">
                        <div class="icon-office"></div>
                        商铺信息
                    </div>
                </a>
                <a href="#default/info?type=2">
                    <div class="navis">
                        <div class="icon-key"></div>
                        修改密码
                    </div>
                </a>
            </div>
        </div>
        <a href="#default/eva">
            <div class="navi" event-click="{{'$Event.showpersonal_btn'}}">
                <div class="navitop">
                    <div class="icon-happy"></div>
                    评价管理
                </div>
            </div>
        </a>
        <a href="#default/theme">
            <div class="navi" event-click="{{'$Event.showpersonal_btn'}}">
                <div class="navitop">
                    <div class="icon-eye"></div>
                    网站风格
                </div>
            </div>
        </a>
        <div data="3" class="navi {{showdata==3&&'focus'}}" event-click="{{'$Event.changenav'}}">
            <div class="navitop">
                <div class="icon-numbered-list"></div>
                返利管理
            </div>
            <div class="navibottom" event-click="{{'$Event.showpersonal_btn'}}">
                <a href="#default/points">
                    <div class="navis">
                        <div class="icon-coin"></div>
                        推荐返利
                    </div>
                </a>
                <a href="#default/shoppinguide">
                    <div class="navis">
                        <div class="icon-users"></div>
                        导购链接
                    </div>
                </a>
            </div>
        </div>
        <a href="#default/visitor">
            <div class="navi " event-click="{{'$Event.showpersonal_btn'}}">
                <div class="navitop">
                    <div class="icon-users2"></div>
                    访客信息
                </div>
            </div>
        </a>
        <a href="#default/goodsmanage">
            <div class="navi" event-click="{{'$Event.showpersonal_btn'}}">
                <div class="navitop">
                    <div class="icon-drawer2"></div>
                    商品管理
                </div>
            </div>
        </a>
        {{#if bus_loginer.permission.can_invite_bus}}
        <a href="#default/invite">
            <div class="navi" event-click="{{'$Event.showpersonal_btn'}}">
                <div class="navitop">
                    <div class="icon-smiley"></div>
                    推荐建站
                </div>
            </div>
        </a>
        {{/if}}
    </div>


</div>
<div class="bottomnavblock"></div>
<script type="text/vm">
    function(vm) {
        require(['common', 'jQuery'], function() {
            App.set('showdata', '');
            App.set('$Event.showpersonal_btn', function() {
                App.model.toggle('isbottom');
                App.set('showdata', '');
            });
            App.set('$Event.closechild', function() {
                App.set('showdata', '');
            });
        App.set("$Event.changenav",function(){
            App.set('showdata', $(this).attr('data'));
            console.log("hehe");
        })
        })
    }
</script>
